from django.urls import path
from course import views
from rest_framework.routers import SimpleRouter
router = SimpleRouter()
router.register("search",views.Search,basename='search')

urlpatterns = [
    path('homecate/',views.HomeCate.as_view()),
    path('homechild/',views.HomeChild.as_view()),
    path('parent/',views.ParentCate.as_view()),
    path('child/',views.ChildCate.as_view()),
    path('list/',views.CourseList.as_view()),
    path('hotword/',views.HotWord.as_view()),
    path('detail/',views.Detail.as_view()),
]

urlpatterns+=router.urls